#FROM openjdk
#VOLUME /tmp
#ADD target/jz-springboot-0.0.1-SNAPSHOT.jar app.jar
#EXPOSE 8888
#ENTRYPOINT ["Bash","-DBash.security.egd=file:/dev/./urandom","-jar","/app.jar"]
FROM openjdk
MAINTAINER git@jzhao.com
VOLUME /tmp
COPY target/*.jar server.jar
EXPOSE 8888
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-XX:+UseContainerSupport", "-XX:MaxRAMPercentage=75.0", "-jar", "server.jar"]